import request from '@/utils/request'

const laws = {
  list(params){
    return request.get(`/wlaq/laws/list`,{params});
  },
  get(id){
    return request.get(`/wlaq/laws/detail/${id}`);
  },
  add(data){
    return request.post('/wlaq/laws/add', data);
  },
  update(data){
    return request.post('/wlaq/laws/update', data);
  },
  del(id){
    return request.post(`/wlaq/laws/delete/${id}`);
  }
}

export default laws;
